//
//  SignTopView.h
//  BOSS-SOOC
//
//  Created by houshijia on 16/9/5.
//  Copyright © 2016年 Gcx. All rights reserved.
//  今日签到和历史签到的头部视图包含输入框，搜索按钮，二维码按钮

#import <UIKit/UIKit.h>
#import "SC_TextFeild.h"

typedef NS_ENUM(NSInteger,SignTopStyle) {
    SignTopStyleSerarchAndCode = 1,
    SignTopStyleOnlySearch = 2,

};

@protocol SignTopDelegate <NSObject>

@optional
-(void)searchTodaySignClick;
-(void)searchHistorySignClick;
-(void)codeButtonClick;

@end


@interface SignTopView : UIView<UITextFieldDelegate>

//输入框
@property (nonatomic,strong) UITextField   *searchBar;

//搜索按钮
@property (nonatomic, strong) UIButton *searchBtn;

//二维码按钮
@property (nonatomic, strong) UIButton *codeBtn;

//样式
@property (nonatomic, assign) SignTopStyle myStyle;

//放置控件的view
@property (nonatomic, strong) UIView *containView;

//代理
@property (nonatomic, strong) id<SignTopDelegate> delegate;



-(instancetype)initWithStyle:(SignTopStyle)style;
@end
